package CtrLayer;
import ModelLayer.*;//StaffMemberCollection;


/**
 * Write a description of class StaffCtr here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class StaffCtr
{
    /**
     * Constructor for objects of class StaffCtr
     */
    public StaffCtr()
    {
        
    }
    
    

    public boolean save_data()
    {
        return StaffMemberCollection.save_data();
    }
    
    public boolean add_account(String name, String phone_nr, String address, String postal_code, String city, String login, String password, int salary, boolean is_manager)
    {
        return StaffMemberCollection.add_staff_member(name, phone_nr, address, postal_code, city, login, password, salary, is_manager);
    }
    
    public String print_employee(String id)
    {
        return StaffMemberCollection.print_employee(id);
    }
    
    public boolean delete_account(String id)
    {
        return StaffMemberCollection.delete_account(id);
    }
    
    public String print_all_employees()
    {
        return StaffMemberCollection.print_all_employees();
    }
    
    
    /***********************************************************EDITING FUNCTIONS***************************************************************/
    public void edit_name(String id, String name)
    {
        StaffMemberCollection.edit_name(id, name);
    }
    
    public void edit_phone_nr(String id, String phone_nr)
    {
        StaffMemberCollection.edit_phone_nr(id, phone_nr);
    }
    
    public void edit_address(String id , String address, String postal_code, String city)
    {
        StaffMemberCollection.edit_address(id, address, postal_code, city);
    }
    
    public void edit_salary(String id, int salary)
    {
        StaffMemberCollection.edit_salary(id, salary);
    }
    
    public void edit_login(String id, String login)
    {
        StaffMemberCollection.edit_login(id, login);
    }
    
    public void edit_password(String id, String password)
    {
        StaffMemberCollection.edit_password(id, password);
    }
    
    public void edit_is_manager(String id, boolean is_manager)
    {
        StaffMemberCollection.edit_is_manager(id, is_manager);
    }
    
    public boolean is_login_used(String login)
    {
        return StaffMemberCollection.is_login_used(login);
    }
    
    public boolean is_manager(String id)
    {
        return StaffMemberCollection.is_manager(id);
    } 
    
    public boolean is_such_id(String id)
    {
        return StaffMemberCollection.is_such_id(id);
    }
 
}
